/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements. See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.jcode.netty.server;

import java.io.Serializable;

/**
 * 服务器节点
 *
 * @Author dreajay
 * @DateTime 2017年4月16日 下午1:47:00
 *
 */
public class ServerNode implements Serializable {

	private static final long serialVersionUID = -8983661464549605373L;

	private String id;
	private String name;
	private String host;
	private String port;
	/** 是否集群cluster、standalone */
	private boolean cluster;
	/** 启动中、已启动、关闭中、已关闭、停用 */
	private String status;
	/** 同一个集群当中的serverId一致 */
	private String serverId;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public String getPort() {
		return port;
	}

	public void setPort(String port) {
		this.port = port;
	}

	public boolean isCluster() {
		return cluster;
	}

	public void setCluster(boolean cluster) {
		this.cluster = cluster;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getServerId() {
		return serverId;
	}

	public void setServerId(String serverId) {
		this.serverId = serverId;
	}

	@Override
	public String toString() {
		return "ServerNode [id=" + id + ", name=" + name + ", host=" + host + ", port=" + port + ", cluster=" + cluster + ", status=" + status + ", serverId=" + serverId + "]";
	}

}
